{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Importing PulP solver\n",
    "from pulp import *"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the demand points\n",
    "demand_points=['Manama','Nicosia', 'Cairo','Tahran','Baghdad','Juresalem','Amman','Kuwait','Beirut','Muscat','Ramallah','Doha','Riyadh','Damascus','Ankara','Dubai','Sanaa']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the distances\n",
    "distance = dict(zip(demand_points,[dict(zip(demand_points, [0,2243,2068,1060,992,1828,1759,455,494,867,1828,141,427,1679,2455,479,1483])),\n",
    "                                   dict(zip(demand_points, [2243,0,604,1982,1286,415,484,1823,377,3049,429,2306,1816,599,529,2675,2707])),\n",
    "                                   dict(zip(demand_points, [2068,604,0,1996,1300,426,494,1837,475,2874,429,2131,1641,671,1133,2500,2103])),\n",
    "                                   dict(zip(demand_points, [1060,1982,1996,0,696,1571,1502,803,1605,1525,1571,1201,1325,1401,1692,1236,2389])),\n",
    "                                   dict(zip(demand_points, [992,1286,1300,696,0,875,806,537,909,1859,875,1133,990,687,1463,1471,2054])),\n",
    "                                   dict(zip(demand_points, [1828,415,426,1571,875,0,69,1412,49,2634,14,1891,1401,246,944,2260,2465])),\n",
    "                                   dict(zip(demand_points, [1759,484,494,1502,806,69,0,1343,109,2565,69,1822,1332,177,953,2191,2396])),\n",
    "                                   dict(zip(demand_points, [455,1823,1837,803,537,1412,1343,0,1446,1322,1412,596,522,1224,2000,934,1584])),\n",
    "                                   dict(zip(demand_points, [494,377,475,1605,909,49,109,1446,0,2674,63,1931,1441,222,898,2300,2505])),\n",
    "                                   dict(zip(demand_points, [867,3049,2874,1525,1859,2634,2565,1322,2674,0,2634,743,1233,2546,3217,388,1757])),\n",
    "                                   dict(zip(demand_points, [1828,429,429,1571,875,14,69,1412,63,2634,0,1891,1401,246,958,2260,2465])),\n",
    "                                   dict(zip(demand_points, [141,2306,2131,1201,1133,1891,1822,596,1931,743,1891,0,490,1820,2596,369,1342])),\n",
    "                                   dict(zip(demand_points, [427,1816,1641,1325,990,1401,1332,522,1441,1233,1401,490,0,1509,2285,859,1064])),\n",
    "                                   dict(zip(demand_points, [1679,599,671,1401,687,246,177,1224,222,2546,246,1820,1509,0,776,2158,2573])),\n",
    "                                   dict(zip(demand_points, [2455,529,1133,1692,1463,944,953,2000,898,3217,958,2596,2285,776,0,2928,3236])),\n",
    "                                   dict(zip(demand_points, [479,2675,2500,1236,1471,2260,2191,934,2300,388,2260,369,859,2158,2928,0,1711])),\n",
    "                                   dict(zip(demand_points, [1483,2707,2103,2389,2054,2465,2396,1584,2505,1757,2465,1342,1064,2573,3236,1711,0]))]))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "ename": "NameError",
     "evalue": "name 'LpProblem' is not defined",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-2-082c56bdcbd0>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m      1\u001b[0m \u001b[1;31m# Set Problem Variables\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 2\u001b[1;33m \u001b[0mprob\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mLpProblem\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m\"Transportation\"\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mLpMinimize\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m: name 'LpProblem' is not defined"
     ]
    }
   ],
   "source": [
    "# Set Problem Variables\n",
    "prob = LpProblem(\"Transportation\", LpMinimize)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Set Problem Variables\n",
    "prob = LpProblem(“Transportation”, LpMinimize)\n",
    "routes = [(i,j) for i in supply_points for j in demand_points]\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "vehicle_demands=dict(zip(demand_points, [31356, 23494, 83464, 72308, 41442, 160110, 74918, 96669, 57754, 93204, 3378, 47563, 397830, 29311, 261140, 365711, 10187]))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Decision Variables\n",
    "X = LpVariable.dicts('X%s%s', (demand_points,demand_points),\n",
    "                     cat = 'Binary',\n",
    "                     lowBound = 0,\n",
    "                     upBound = 1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Setting up the minimization problem\n",
    "\n",
    "prob=LpProblem ('P Median',LpMinimize)\n",
    "prob+= sum(sum(vehicle_demands[j]*distance[i][j]*X[i][j] for j in demand_points)for i in demand_points)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "P Median:\n",
       "MINIMIZE\n",
       "248866420*XAmmanAnkara + 33402252*XAmmanBaghdad + 6295186*XAmmanBeirut + 41231216*XAmmanCairo + 5188047*XAmmanDamascus + 86659786*XAmmanDoha + 801272801*XAmmanDubai + 11047590*XAmmanJuresalem + 129826467*XAmmanKuwait + 55155204*XAmmanManama + 239068260*XAmmanMuscat + 11371096*XAmmanNicosia + 233082*XAmmanRamallah + 529909560*XAmmanRiyadh + 24408052*XAmmanSanaa + 108606616*XAmmanTahran + 71396854*XAnkaraAmman + 60629646*XAnkaraBaghdad + 51863092*XAnkaraBeirut + 94564712*XAnkaraCairo + 22745336*XAnkaraDamascus + 123473548*XAnkaraDoha + 1070801808*XAnkaraDubai + 151143840*XAnkaraJuresalem + 193338000*XAnkaraKuwait + 76978980*XAnkaraManama + 299837268*XAnkaraMuscat + 12428326*XAnkaraNicosia + 3236124*XAnkaraRamallah + 909041550*XAnkaraRiyadh + 32965132*XAnkaraSanaa + 122345136*XAnkaraTahran + 60383908*XBaghdadAmman + 382047820*XBaghdadAnkara + 52498386*XBaghdadBeirut + 108503200*XBaghdadCairo + 20136657*XBaghdadDamascus + 53888879*XBaghdadDoha + 537960881*XBaghdadDubai + 140096250*XBaghdadJuresalem + 51911253*XBaghdadKuwait + 31105152*XBaghdadManama + 173266236*XBaghdadMuscat + 30213284*XBaghdadNicosia + 2955750*XBaghdadRamallah + 393851700*XBaghdadRiyadh + 20924098*XBaghdadSanaa + 50326368*XBaghdadTahran + 8166062*XBeirutAmman + 234503720*XBeirutAnkara + 37670778*XBeirutBaghdad + 39645400*XBeirutCairo + 6507042*XBeirutDamascus + 91844153*XBeirutDoha + 841135300*XBeirutDubai + 7845390*XBeirutJuresalem + 139783374*XBeirutKuwait + 15489864*XBeirutManama + 249227496*XBeirutMuscat + 8857238*XBeirutNicosia + 212814*XBeirutRamallah + 573273030*XBeirutRiyadh + 25518435*XBeirutSanaa + 116054340*XBeirutTahran + 37009492*XCairoAmman + 295871620*XCairoAnkara + 53874600*XCairoBaghdad + 27433150*XCairoBeirut + 19667681*XCairoDamascus + 101356753*XCairoDoha + 914277500*XCairoDubai + 68206860*XCairoJuresalem + 177580953*XCairoKuwait + 64844208*XCairoManama + 267868296*XCairoMuscat + 14190376*XCairoNicosia + 1449162*XCairoRamallah + 652839030*XCairoRiyadh + 21423261*XCairoSanaa + 144326768*XCairoTahran + 13260486*XDamascusAmman + 202644640*XDamascusAnkara + 28470654*XDamascusBaghdad + 12821388*XDamascusBeirut + 56004344*XDamascusCairo + 86564660*XDamascusDoha + 789204338*XDamascusDubai + 39387060*XDamascusJuresalem + 118322856*XDamascusKuwait + 52646724*XDamascusManama + 237297384*XDamascusMuscat + 14072906*XDamascusNicosia + 830988*XDamascusRamallah + 600325470*XDamascusRiyadh + 26211151*XDamascusSanaa + 101303508*XDamascusTahran + 136500596*XDohaAmman + 677919440*XDohaAnkara + 46953786*XDohaBaghdad + 111522974*XDohaBeirut + 177861784*XDohaCairo + 53346020*XDohaDamascus + 134947359*XDohaDubai + 302768010*XDohaJuresalem + 57614724*XDohaKuwait + 4421196*XDohaManama + 69250572*XDohaMuscat + 54177164*XDohaNicosia + 6387798*XDohaRamallah + 194936700*XDohaRiyadh + 13670954*XDohaSanaa + 86841908*XDohaTahran + 164145338*XDubaiAmman + 764617920*XDubaiAnkara + 60961182*XDubaiBaghdad + 132834200*XDubaiBeirut + 208660000*XDubaiCairo + 63253138*XDubaiDamascus + 17550747*XDubaiDoha + 361848600*XDubaiJuresalem + 90288846*XDubaiKuwait + 15019524*XDubaiManama + 36163152*XDubaiMuscat + 62846450*XDubaiNicosia + 7634280*XDubaiRamallah + 341735970*XDubaiRiyadh + 17429957*XDubaiSanaa + 89372688*XDubaiTahran + 5169342*XJuresalemAmman + 246516160*XJuresalemAnkara + 36261750*XJuresalemBaghdad + 2829946*XJuresalemBeirut + 35555664*XJuresalemCairo + 7210506*XJuresalemDamascus + 89941633*XJuresalemDoha + 826506860*XJuresalemDubai + 136496628*XJuresalemKuwait + 57318768*XJuresalemManama + 245499336*XJuresalemMuscat + 9750010*XJuresalemNicosia + 47292*XJuresalemRamallah + 557359830*XJuresalemRiyadh + 25110955*XJuresalemSanaa + 113595868*XJuresalemTahran + 100614874*XKuwaitAmman + 522280000*XKuwaitAnkara + 22254354*XKuwaitBaghdad + 83512284*XKuwaitBeirut + 153323368*XKuwaitCairo + 35876664*XKuwaitDamascus + 28347548*XKuwaitDoha + 341574074*XKuwaitDubai + 226075320*XKuwaitJuresalem + 14266980*XKuwaitManama + 123215688*XKuwaitMuscat + 42829562*XKuwaitNicosia + 4769736*XKuwaitRamallah + 207667260*XKuwaitRiyadh + 16136208*XKuwaitSanaa + 58063324*XKuwaitTahran + 131780762*XManamaAmman + 641098700*XManamaAnkara + 41110464*XManamaBaghdad + 28530476*XManamaBeirut + 172603552*XManamaCairo + 49213169*XManamaDamascus + 6706383*XManamaDoha + 175175569*XManamaDubai + 292681080*XManamaJuresalem + 43984395*XManamaKuwait + 80807868*XManamaMuscat + 52697042*XManamaNicosia + 6174984*XManamaRamallah + 169873410*XManamaRiyadh + 15107321*XManamaSanaa + 76646480*XManamaTahran + 192164670*XMuscatAmman + 840087380*XMuscatAnkara + 77040678*XMuscatBaghdad + 154434196*XMuscatBeirut + 239875536*XMuscatCairo + 74625806*XMuscatDamascus + 35339309*XMuscatDoha + 141895868*XMuscatDubai + 421729740*XMuscatJuresalem + 127796418*XMuscatKuwait + 27185652*XMuscatManama + 71633206*XMuscatNicosia + 8897652*XMuscatRamallah + 490524390*XMuscatRiyadh + 17898559*XMuscatSanaa + 110269700*XMuscatTahran + 36260312*XNicosiaAmman + 138143060*XNicosiaAnkara + 53294412*XNicosiaBaghdad + 21773258*XNicosiaBeirut + 50412256*XNicosiaCairo + 17557289*XNicosiaDamascus + 109680278*XNicosiaDoha + 978276925*XNicosiaDubai + 66445650*XNicosiaJuresalem + 176227587*XNicosiaKuwait + 70331508*XNicosiaManama + 284178996*XNicosiaMuscat + 1449162*XNicosiaRamallah + 722459280*XNicosiaRiyadh + 27576209*XNicosiaSanaa + 143314456*XNicosiaTahran + 5169342*XRamallahAmman + 250172120*XRamallahAnkara + 36261750*XRamallahBaghdad + 3638502*XRamallahBeirut + 35806056*XRamallahCairo + 7210506*XRamallahDamascus + 89941633*XRamallahDoha + 826506860*XRamallahDubai + 2241540*XRamallahJuresalem + 136496628*XRamallahKuwait + 57318768*XRamallahManama + 245499336*XRamallahMuscat + 10078926*XRamallahNicosia + 557359830*XRamallahRiyadh + 25110955*XRamallahSanaa + 113595868*XRamallahTahran + 99790776*XRiyadhAmman + 596704900*XRiyadhAnkara + 41027580*XRiyadhBaghdad + 83223514*XRiyadhBeirut + 136964424*XRiyadhCairo + 44230299*XRiyadhDamascus + 23305870*XRiyadhDoha + 314145749*XRiyadhDubai + 224314110*XRiyadhJuresalem + 50461218*XRiyadhKuwait + 13389012*XRiyadhManama + 114920532*XRiyadhMuscat + 42665104*XRiyadhNicosia + 4732578*XRiyadhRamallah + 10838968*XRiyadhSanaa + 95808100*XRiyadhTahran + 179503528*XSanaaAmman + 845049040*XSanaaAnkara + 85121868*XSanaaBaghdad + 144673770*XSanaaBeirut + 175524792*XSanaaCairo + 75417203*XSanaaDamascus + 63829546*XSanaaDoha + 625731521*XSanaaDubai + 394671150*XSanaaJuresalem + 153123696*XSanaaKuwait + 46500948*XSanaaManama + 163759428*XSanaaMuscat + 63598258*XSanaaNicosia + 8326770*XSanaaRamallah + 423291120*XSanaaRiyadh + 172743812*XSanaaTahran + 112526836*XTahranAmman + 441848880*XTahranAnkara + 28843632*XTahranBaghdad + 92695170*XTahranBeirut + 166594144*XTahranCairo + 41064711*XTahranDamascus + 57123163*XTahranDoha + 452018796*XTahranDubai + 251532810*XTahranJuresalem + 77625207*XTahranKuwait + 33237360*XTahranManama + 142136100*XTahranMuscat + 46565108*XTahranNicosia + 5306838*XTahranRamallah + 527124750*XTahranRiyadh + 24336743*XTahranSanaa + 0\n",
       "SUBJECT TO\n",
       "_C1: XAmmanAmman + XAnkaraAnkara + XBaghdadBaghdad + XBeirutBeirut\n",
       " + XCairoCairo + XDamascusDamascus + XDohaDoha + XDubaiDubai\n",
       " + XJuresalemJuresalem + XKuwaitKuwait + XManamaManama + XMuscatMuscat\n",
       " + XNicosiaNicosia + XRamallahRamallah + XRiyadhRiyadh + XSanaaSanaa\n",
       " + XTahranTahran = 2\n",
       "\n",
       "_C2: XAmmanManama + XAnkaraManama + XBaghdadManama + XBeirutManama\n",
       " + XCairoManama + XDamascusManama + XDohaManama + XDubaiManama\n",
       " + XJuresalemManama + XKuwaitManama + XManamaManama + XMuscatManama\n",
       " + XNicosiaManama + XRamallahManama + XRiyadhManama + XSanaaManama\n",
       " + XTahranManama = 1\n",
       "\n",
       "_C3: XAmmanNicosia + XAnkaraNicosia + XBaghdadNicosia + XBeirutNicosia\n",
       " + XCairoNicosia + XDamascusNicosia + XDohaNicosia + XDubaiNicosia\n",
       " + XJuresalemNicosia + XKuwaitNicosia + XManamaNicosia + XMuscatNicosia\n",
       " + XNicosiaNicosia + XRamallahNicosia + XRiyadhNicosia + XSanaaNicosia\n",
       " + XTahranNicosia = 1\n",
       "\n",
       "_C4: XAmmanCairo + XAnkaraCairo + XBaghdadCairo + XBeirutCairo + XCairoCairo\n",
       " + XDamascusCairo + XDohaCairo + XDubaiCairo + XJuresalemCairo + XKuwaitCairo\n",
       " + XManamaCairo + XMuscatCairo + XNicosiaCairo + XRamallahCairo + XRiyadhCairo\n",
       " + XSanaaCairo + XTahranCairo = 1\n",
       "\n",
       "_C5: XAmmanTahran + XAnkaraTahran + XBaghdadTahran + XBeirutTahran\n",
       " + XCairoTahran + XDamascusTahran + XDohaTahran + XDubaiTahran\n",
       " + XJuresalemTahran + XKuwaitTahran + XManamaTahran + XMuscatTahran\n",
       " + XNicosiaTahran + XRamallahTahran + XRiyadhTahran + XSanaaTahran\n",
       " + XTahranTahran = 1\n",
       "\n",
       "_C6: XAmmanBaghdad + XAnkaraBaghdad + XBaghdadBaghdad + XBeirutBaghdad\n",
       " + XCairoBaghdad + XDamascusBaghdad + XDohaBaghdad + XDubaiBaghdad\n",
       " + XJuresalemBaghdad + XKuwaitBaghdad + XManamaBaghdad + XMuscatBaghdad\n",
       " + XNicosiaBaghdad + XRamallahBaghdad + XRiyadhBaghdad + XSanaaBaghdad\n",
       " + XTahranBaghdad = 1\n",
       "\n",
       "_C7: XAmmanJuresalem + XAnkaraJuresalem + XBaghdadJuresalem + XBeirutJuresalem\n",
       " + XCairoJuresalem + XDamascusJuresalem + XDohaJuresalem + XDubaiJuresalem\n",
       " + XJuresalemJuresalem + XKuwaitJuresalem + XManamaJuresalem\n",
       " + XMuscatJuresalem + XNicosiaJuresalem + XRamallahJuresalem\n",
       " + XRiyadhJuresalem + XSanaaJuresalem + XTahranJuresalem = 1\n",
       "\n",
       "_C8: XAmmanAmman + XAnkaraAmman + XBaghdadAmman + XBeirutAmman + XCairoAmman\n",
       " + XDamascusAmman + XDohaAmman + XDubaiAmman + XJuresalemAmman + XKuwaitAmman\n",
       " + XManamaAmman + XMuscatAmman + XNicosiaAmman + XRamallahAmman + XRiyadhAmman\n",
       " + XSanaaAmman + XTahranAmman = 1\n",
       "\n",
       "_C9: XAmmanKuwait + XAnkaraKuwait + XBaghdadKuwait + XBeirutKuwait\n",
       " + XCairoKuwait + XDamascusKuwait + XDohaKuwait + XDubaiKuwait\n",
       " + XJuresalemKuwait + XKuwaitKuwait + XManamaKuwait + XMuscatKuwait\n",
       " + XNicosiaKuwait + XRamallahKuwait + XRiyadhKuwait + XSanaaKuwait\n",
       " + XTahranKuwait = 1\n",
       "\n",
       "_C10: XAmmanBeirut + XAnkaraBeirut + XBaghdadBeirut + XBeirutBeirut\n",
       " + XCairoBeirut + XDamascusBeirut + XDohaBeirut + XDubaiBeirut\n",
       " + XJuresalemBeirut + XKuwaitBeirut + XManamaBeirut + XMuscatBeirut\n",
       " + XNicosiaBeirut + XRamallahBeirut + XRiyadhBeirut + XSanaaBeirut\n",
       " + XTahranBeirut = 1\n",
       "\n",
       "_C11: XAmmanMuscat + XAnkaraMuscat + XBaghdadMuscat + XBeirutMuscat\n",
       " + XCairoMuscat + XDamascusMuscat + XDohaMuscat + XDubaiMuscat\n",
       " + XJuresalemMuscat + XKuwaitMuscat + XManamaMuscat + XMuscatMuscat\n",
       " + XNicosiaMuscat + XRamallahMuscat + XRiyadhMuscat + XSanaaMuscat\n",
       " + XTahranMuscat = 1\n",
       "\n",
       "_C12: XAmmanRamallah + XAnkaraRamallah + XBaghdadRamallah + XBeirutRamallah\n",
       " + XCairoRamallah + XDamascusRamallah + XDohaRamallah + XDubaiRamallah\n",
       " + XJuresalemRamallah + XKuwaitRamallah + XManamaRamallah + XMuscatRamallah\n",
       " + XNicosiaRamallah + XRamallahRamallah + XRiyadhRamallah + XSanaaRamallah\n",
       " + XTahranRamallah = 1\n",
       "\n",
       "_C13: XAmmanDoha + XAnkaraDoha + XBaghdadDoha + XBeirutDoha + XCairoDoha\n",
       " + XDamascusDoha + XDohaDoha + XDubaiDoha + XJuresalemDoha + XKuwaitDoha\n",
       " + XManamaDoha + XMuscatDoha + XNicosiaDoha + XRamallahDoha + XRiyadhDoha\n",
       " + XSanaaDoha + XTahranDoha = 1\n",
       "\n",
       "_C14: XAmmanRiyadh + XAnkaraRiyadh + XBaghdadRiyadh + XBeirutRiyadh\n",
       " + XCairoRiyadh + XDamascusRiyadh + XDohaRiyadh + XDubaiRiyadh\n",
       " + XJuresalemRiyadh + XKuwaitRiyadh + XManamaRiyadh + XMuscatRiyadh\n",
       " + XNicosiaRiyadh + XRamallahRiyadh + XRiyadhRiyadh + XSanaaRiyadh\n",
       " + XTahranRiyadh = 1\n",
       "\n",
       "_C15: XAmmanDamascus + XAnkaraDamascus + XBaghdadDamascus + XBeirutDamascus\n",
       " + XCairoDamascus + XDamascusDamascus + XDohaDamascus + XDubaiDamascus\n",
       " + XJuresalemDamascus + XKuwaitDamascus + XManamaDamascus + XMuscatDamascus\n",
       " + XNicosiaDamascus + XRamallahDamascus + XRiyadhDamascus + XSanaaDamascus\n",
       " + XTahranDamascus = 1\n",
       "\n",
       "_C16: XAmmanAnkara + XAnkaraAnkara + XBaghdadAnkara + XBeirutAnkara\n",
       " + XCairoAnkara + XDamascusAnkara + XDohaAnkara + XDubaiAnkara\n",
       " + XJuresalemAnkara + XKuwaitAnkara + XManamaAnkara + XMuscatAnkara\n",
       " + XNicosiaAnkara + XRamallahAnkara + XRiyadhAnkara + XSanaaAnkara\n",
       " + XTahranAnkara = 1\n",
       "\n",
       "_C17: XAmmanDubai + XAnkaraDubai + XBaghdadDubai + XBeirutDubai + XCairoDubai\n",
       " + XDamascusDubai + XDohaDubai + XDubaiDubai + XJuresalemDubai + XKuwaitDubai\n",
       " + XManamaDubai + XMuscatDubai + XNicosiaDubai + XRamallahDubai + XRiyadhDubai\n",
       " + XSanaaDubai + XTahranDubai = 1\n",
       "\n",
       "_C18: XAmmanSanaa + XAnkaraSanaa + XBaghdadSanaa + XBeirutSanaa + XCairoSanaa\n",
       " + XDamascusSanaa + XDohaSanaa + XDubaiSanaa + XJuresalemSanaa + XKuwaitSanaa\n",
       " + XManamaSanaa + XMuscatSanaa + XNicosiaSanaa + XRamallahSanaa + XRiyadhSanaa\n",
       " + XSanaaSanaa + XTahranSanaa = 1\n",
       "\n",
       "_C19: 0 XManamaManama <= 0\n",
       "\n",
       "_C20: XNicosiaManama - XNicosiaNicosia <= 0\n",
       "\n",
       "_C21: - XCairoCairo + XCairoManama <= 0\n",
       "\n",
       "_C22: XTahranManama - XTahranTahran <= 0\n",
       "\n",
       "_C23: - XBaghdadBaghdad + XBaghdadManama <= 0\n",
       "\n",
       "_C24: - XJuresalemJuresalem + XJuresalemManama <= 0\n",
       "\n",
       "_C25: - XAmmanAmman + XAmmanManama <= 0\n",
       "\n",
       "_C26: - XKuwaitKuwait + XKuwaitManama <= 0\n",
       "\n",
       "_C27: - XBeirutBeirut + XBeirutManama <= 0\n",
       "\n",
       "_C28: XMuscatManama - XMuscatMuscat <= 0\n",
       "\n",
       "_C29: XRamallahManama - XRamallahRamallah <= 0\n",
       "\n",
       "_C30: - XDohaDoha + XDohaManama <= 0\n",
       "\n",
       "_C31: XRiyadhManama - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C32: - XDamascusDamascus + XDamascusManama <= 0\n",
       "\n",
       "_C33: - XAnkaraAnkara + XAnkaraManama <= 0\n",
       "\n",
       "_C34: - XDubaiDubai + XDubaiManama <= 0\n",
       "\n",
       "_C35: XSanaaManama - XSanaaSanaa <= 0\n",
       "\n",
       "_C36: - XManamaManama + XManamaNicosia <= 0\n",
       "\n",
       "_C37: 0 XNicosiaNicosia <= 0\n",
       "\n",
       "_C38: - XCairoCairo + XCairoNicosia <= 0\n",
       "\n",
       "_C39: XTahranNicosia - XTahranTahran <= 0\n",
       "\n",
       "_C40: - XBaghdadBaghdad + XBaghdadNicosia <= 0\n",
       "\n",
       "_C41: - XJuresalemJuresalem + XJuresalemNicosia <= 0\n",
       "\n",
       "_C42: - XAmmanAmman + XAmmanNicosia <= 0\n",
       "\n",
       "_C43: - XKuwaitKuwait + XKuwaitNicosia <= 0\n",
       "\n",
       "_C44: - XBeirutBeirut + XBeirutNicosia <= 0\n",
       "\n",
       "_C45: - XMuscatMuscat + XMuscatNicosia <= 0\n",
       "\n",
       "_C46: XRamallahNicosia - XRamallahRamallah <= 0\n",
       "\n",
       "_C47: - XDohaDoha + XDohaNicosia <= 0\n",
       "\n",
       "_C48: XRiyadhNicosia - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C49: - XDamascusDamascus + XDamascusNicosia <= 0\n",
       "\n",
       "_C50: - XAnkaraAnkara + XAnkaraNicosia <= 0\n",
       "\n",
       "_C51: - XDubaiDubai + XDubaiNicosia <= 0\n",
       "\n",
       "_C52: XSanaaNicosia - XSanaaSanaa <= 0\n",
       "\n",
       "_C53: XManamaCairo - XManamaManama <= 0\n",
       "\n",
       "_C54: XNicosiaCairo - XNicosiaNicosia <= 0\n",
       "\n",
       "_C55: 0 XCairoCairo <= 0\n",
       "\n",
       "_C56: XTahranCairo - XTahranTahran <= 0\n",
       "\n",
       "_C57: - XBaghdadBaghdad + XBaghdadCairo <= 0\n",
       "\n",
       "_C58: XJuresalemCairo - XJuresalemJuresalem <= 0\n",
       "\n",
       "_C59: - XAmmanAmman + XAmmanCairo <= 0\n",
       "\n",
       "_C60: XKuwaitCairo - XKuwaitKuwait <= 0\n",
       "\n",
       "_C61: - XBeirutBeirut + XBeirutCairo <= 0\n",
       "\n",
       "_C62: XMuscatCairo - XMuscatMuscat <= 0\n",
       "\n",
       "_C63: XRamallahCairo - XRamallahRamallah <= 0\n",
       "\n",
       "_C64: XDohaCairo - XDohaDoha <= 0\n",
       "\n",
       "_C65: XRiyadhCairo - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C66: XDamascusCairo - XDamascusDamascus <= 0\n",
       "\n",
       "_C67: - XAnkaraAnkara + XAnkaraCairo <= 0\n",
       "\n",
       "_C68: XDubaiCairo - XDubaiDubai <= 0\n",
       "\n",
       "_C69: XSanaaCairo - XSanaaSanaa <= 0\n",
       "\n",
       "_C70: - XManamaManama + XManamaTahran <= 0\n",
       "\n",
       "_C71: - XNicosiaNicosia + XNicosiaTahran <= 0\n",
       "\n",
       "_C72: - XCairoCairo + XCairoTahran <= 0\n",
       "\n",
       "_C73: 0 XTahranTahran <= 0\n",
       "\n",
       "_C74: - XBaghdadBaghdad + XBaghdadTahran <= 0\n",
       "\n",
       "_C75: - XJuresalemJuresalem + XJuresalemTahran <= 0\n",
       "\n",
       "_C76: - XAmmanAmman + XAmmanTahran <= 0\n",
       "\n",
       "_C77: - XKuwaitKuwait + XKuwaitTahran <= 0\n",
       "\n",
       "_C78: - XBeirutBeirut + XBeirutTahran <= 0\n",
       "\n",
       "_C79: - XMuscatMuscat + XMuscatTahran <= 0\n",
       "\n",
       "_C80: - XRamallahRamallah + XRamallahTahran <= 0\n",
       "\n",
       "_C81: - XDohaDoha + XDohaTahran <= 0\n",
       "\n",
       "_C82: - XRiyadhRiyadh + XRiyadhTahran <= 0\n",
       "\n",
       "_C83: - XDamascusDamascus + XDamascusTahran <= 0\n",
       "\n",
       "_C84: - XAnkaraAnkara + XAnkaraTahran <= 0\n",
       "\n",
       "_C85: - XDubaiDubai + XDubaiTahran <= 0\n",
       "\n",
       "_C86: - XSanaaSanaa + XSanaaTahran <= 0\n",
       "\n",
       "_C87: XManamaBaghdad - XManamaManama <= 0\n",
       "\n",
       "_C88: XNicosiaBaghdad - XNicosiaNicosia <= 0\n",
       "\n",
       "_C89: XCairoBaghdad - XCairoCairo <= 0\n",
       "\n",
       "_C90: XTahranBaghdad - XTahranTahran <= 0\n",
       "\n",
       "_C91: 0 XBaghdadBaghdad <= 0\n",
       "\n",
       "_C92: XJuresalemBaghdad - XJuresalemJuresalem <= 0\n",
       "\n",
       "_C93: - XAmmanAmman + XAmmanBaghdad <= 0\n",
       "\n",
       "_C94: XKuwaitBaghdad - XKuwaitKuwait <= 0\n",
       "\n",
       "_C95: XBeirutBaghdad - XBeirutBeirut <= 0\n",
       "\n",
       "_C96: XMuscatBaghdad - XMuscatMuscat <= 0\n",
       "\n",
       "_C97: XRamallahBaghdad - XRamallahRamallah <= 0\n",
       "\n",
       "_C98: XDohaBaghdad - XDohaDoha <= 0\n",
       "\n",
       "_C99: XRiyadhBaghdad - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C100: XDamascusBaghdad - XDamascusDamascus <= 0\n",
       "\n",
       "_C101: - XAnkaraAnkara + XAnkaraBaghdad <= 0\n",
       "\n",
       "_C102: XDubaiBaghdad - XDubaiDubai <= 0\n",
       "\n",
       "_C103: XSanaaBaghdad - XSanaaSanaa <= 0\n",
       "\n",
       "_C104: XManamaJuresalem - XManamaManama <= 0\n",
       "\n",
       "_C105: XNicosiaJuresalem - XNicosiaNicosia <= 0\n",
       "\n",
       "_C106: - XCairoCairo + XCairoJuresalem <= 0\n",
       "\n",
       "_C107: XTahranJuresalem - XTahranTahran <= 0\n",
       "\n",
       "_C108: - XBaghdadBaghdad + XBaghdadJuresalem <= 0\n",
       "\n",
       "_C109: 0 XJuresalemJuresalem <= 0\n",
       "\n",
       "_C110: - XAmmanAmman + XAmmanJuresalem <= 0\n",
       "\n",
       "_C111: XKuwaitJuresalem - XKuwaitKuwait <= 0\n",
       "\n",
       "_C112: - XBeirutBeirut + XBeirutJuresalem <= 0\n",
       "\n",
       "_C113: XMuscatJuresalem - XMuscatMuscat <= 0\n",
       "\n",
       "_C114: XRamallahJuresalem - XRamallahRamallah <= 0\n",
       "\n",
       "_C115: - XDohaDoha + XDohaJuresalem <= 0\n",
       "\n",
       "_C116: XRiyadhJuresalem - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C117: - XDamascusDamascus + XDamascusJuresalem <= 0\n",
       "\n",
       "_C118: - XAnkaraAnkara + XAnkaraJuresalem <= 0\n",
       "\n",
       "_C119: - XDubaiDubai + XDubaiJuresalem <= 0\n",
       "\n",
       "_C120: XSanaaJuresalem - XSanaaSanaa <= 0\n",
       "\n",
       "_C121: XManamaAmman - XManamaManama <= 0\n",
       "\n",
       "_C122: XNicosiaAmman - XNicosiaNicosia <= 0\n",
       "\n",
       "_C123: XCairoAmman - XCairoCairo <= 0\n",
       "\n",
       "_C124: XTahranAmman - XTahranTahran <= 0\n",
       "\n",
       "_C125: XBaghdadAmman - XBaghdadBaghdad <= 0\n",
       "\n",
       "_C126: XJuresalemAmman - XJuresalemJuresalem <= 0\n",
       "\n",
       "_C127: 0 XAmmanAmman <= 0\n",
       "\n",
       "_C128: XKuwaitAmman - XKuwaitKuwait <= 0\n",
       "\n",
       "_C129: XBeirutAmman - XBeirutBeirut <= 0\n",
       "\n",
       "_C130: XMuscatAmman - XMuscatMuscat <= 0\n",
       "\n",
       "_C131: XRamallahAmman - XRamallahRamallah <= 0\n",
       "\n",
       "_C132: XDohaAmman - XDohaDoha <= 0\n",
       "\n",
       "_C133: XRiyadhAmman - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C134: XDamascusAmman - XDamascusDamascus <= 0\n",
       "\n",
       "_C135: XAnkaraAmman - XAnkaraAnkara <= 0\n",
       "\n",
       "_C136: XDubaiAmman - XDubaiDubai <= 0\n",
       "\n",
       "_C137: XSanaaAmman - XSanaaSanaa <= 0\n",
       "\n",
       "_C138: XManamaKuwait - XManamaManama <= 0\n",
       "\n",
       "_C139: XNicosiaKuwait - XNicosiaNicosia <= 0\n",
       "\n",
       "_C140: - XCairoCairo + XCairoKuwait <= 0\n",
       "\n",
       "_C141: XTahranKuwait - XTahranTahran <= 0\n",
       "\n",
       "_C142: - XBaghdadBaghdad + XBaghdadKuwait <= 0\n",
       "\n",
       "_C143: - XJuresalemJuresalem + XJuresalemKuwait <= 0\n",
       "\n",
       "_C144: - XAmmanAmman + XAmmanKuwait <= 0\n",
       "\n",
       "_C145: 0 XKuwaitKuwait <= 0\n",
       "\n",
       "_C146: - XBeirutBeirut + XBeirutKuwait <= 0\n",
       "\n",
       "_C147: XMuscatKuwait - XMuscatMuscat <= 0\n",
       "\n",
       "_C148: XRamallahKuwait - XRamallahRamallah <= 0\n",
       "\n",
       "_C149: - XDohaDoha + XDohaKuwait <= 0\n",
       "\n",
       "_C150: XRiyadhKuwait - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C151: - XDamascusDamascus + XDamascusKuwait <= 0\n",
       "\n",
       "_C152: - XAnkaraAnkara + XAnkaraKuwait <= 0\n",
       "\n",
       "_C153: - XDubaiDubai + XDubaiKuwait <= 0\n",
       "\n",
       "_C154: XSanaaKuwait - XSanaaSanaa <= 0\n",
       "\n",
       "_C155: XManamaBeirut - XManamaManama <= 0\n",
       "\n",
       "_C156: XNicosiaBeirut - XNicosiaNicosia <= 0\n",
       "\n",
       "_C157: XCairoBeirut - XCairoCairo <= 0\n",
       "\n",
       "_C158: XTahranBeirut - XTahranTahran <= 0\n",
       "\n",
       "_C159: - XBaghdadBaghdad + XBaghdadBeirut <= 0\n",
       "\n",
       "_C160: XJuresalemBeirut - XJuresalemJuresalem <= 0\n",
       "\n",
       "_C161: - XAmmanAmman + XAmmanBeirut <= 0\n",
       "\n",
       "_C162: XKuwaitBeirut - XKuwaitKuwait <= 0\n",
       "\n",
       "_C163: 0 XBeirutBeirut <= 0\n",
       "\n",
       "_C164: XMuscatBeirut - XMuscatMuscat <= 0\n",
       "\n",
       "_C165: XRamallahBeirut - XRamallahRamallah <= 0\n",
       "\n",
       "_C166: XDohaBeirut - XDohaDoha <= 0\n",
       "\n",
       "_C167: XRiyadhBeirut - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C168: XDamascusBeirut - XDamascusDamascus <= 0\n",
       "\n",
       "_C169: - XAnkaraAnkara + XAnkaraBeirut <= 0\n",
       "\n",
       "_C170: XDubaiBeirut - XDubaiDubai <= 0\n",
       "\n",
       "_C171: XSanaaBeirut - XSanaaSanaa <= 0\n",
       "\n",
       "_C172: - XManamaManama + XManamaMuscat <= 0\n",
       "\n",
       "_C173: XNicosiaMuscat - XNicosiaNicosia <= 0\n",
       "\n",
       "_C174: - XCairoCairo + XCairoMuscat <= 0\n",
       "\n",
       "_C175: XTahranMuscat - XTahranTahran <= 0\n",
       "\n",
       "_C176: - XBaghdadBaghdad + XBaghdadMuscat <= 0\n",
       "\n",
       "_C177: - XJuresalemJuresalem + XJuresalemMuscat <= 0\n",
       "\n",
       "_C178: - XAmmanAmman + XAmmanMuscat <= 0\n",
       "\n",
       "_C179: - XKuwaitKuwait + XKuwaitMuscat <= 0\n",
       "\n",
       "_C180: - XBeirutBeirut + XBeirutMuscat <= 0\n",
       "\n",
       "_C181: 0 XMuscatMuscat <= 0\n",
       "\n",
       "_C182: XRamallahMuscat - XRamallahRamallah <= 0\n",
       "\n",
       "_C183: - XDohaDoha + XDohaMuscat <= 0\n",
       "\n",
       "_C184: XRiyadhMuscat - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C185: - XDamascusDamascus + XDamascusMuscat <= 0\n",
       "\n",
       "_C186: - XAnkaraAnkara + XAnkaraMuscat <= 0\n",
       "\n",
       "_C187: - XDubaiDubai + XDubaiMuscat <= 0\n",
       "\n",
       "_C188: XSanaaMuscat - XSanaaSanaa <= 0\n",
       "\n",
       "_C189: - XManamaManama + XManamaRamallah <= 0\n",
       "\n",
       "_C190: - XNicosiaNicosia + XNicosiaRamallah <= 0\n",
       "\n",
       "_C191: - XCairoCairo + XCairoRamallah <= 0\n",
       "\n",
       "_C192: XTahranRamallah - XTahranTahran <= 0\n",
       "\n",
       "_C193: - XBaghdadBaghdad + XBaghdadRamallah <= 0\n",
       "\n",
       "_C194: - XJuresalemJuresalem + XJuresalemRamallah <= 0\n",
       "\n",
       "_C195: - XAmmanAmman + XAmmanRamallah <= 0\n",
       "\n",
       "_C196: - XKuwaitKuwait + XKuwaitRamallah <= 0\n",
       "\n",
       "_C197: - XBeirutBeirut + XBeirutRamallah <= 0\n",
       "\n",
       "_C198: - XMuscatMuscat + XMuscatRamallah <= 0\n",
       "\n",
       "_C199: 0 XRamallahRamallah <= 0\n",
       "\n",
       "_C200: - XDohaDoha + XDohaRamallah <= 0\n",
       "\n",
       "_C201: XRiyadhRamallah - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C202: - XDamascusDamascus + XDamascusRamallah <= 0\n",
       "\n",
       "_C203: - XAnkaraAnkara + XAnkaraRamallah <= 0\n",
       "\n",
       "_C204: - XDubaiDubai + XDubaiRamallah <= 0\n",
       "\n",
       "_C205: XSanaaRamallah - XSanaaSanaa <= 0\n",
       "\n",
       "_C206: XManamaDoha - XManamaManama <= 0\n",
       "\n",
       "_C207: XNicosiaDoha - XNicosiaNicosia <= 0\n",
       "\n",
       "_C208: - XCairoCairo + XCairoDoha <= 0\n",
       "\n",
       "_C209: XTahranDoha - XTahranTahran <= 0\n",
       "\n",
       "_C210: - XBaghdadBaghdad + XBaghdadDoha <= 0\n",
       "\n",
       "_C211: XJuresalemDoha - XJuresalemJuresalem <= 0\n",
       "\n",
       "_C212: - XAmmanAmman + XAmmanDoha <= 0\n",
       "\n",
       "_C213: XKuwaitDoha - XKuwaitKuwait <= 0\n",
       "\n",
       "_C214: - XBeirutBeirut + XBeirutDoha <= 0\n",
       "\n",
       "_C215: XMuscatDoha - XMuscatMuscat <= 0\n",
       "\n",
       "_C216: XRamallahDoha - XRamallahRamallah <= 0\n",
       "\n",
       "_C217: 0 XDohaDoha <= 0\n",
       "\n",
       "_C218: XRiyadhDoha - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C219: - XDamascusDamascus + XDamascusDoha <= 0\n",
       "\n",
       "_C220: - XAnkaraAnkara + XAnkaraDoha <= 0\n",
       "\n",
       "_C221: XDubaiDoha - XDubaiDubai <= 0\n",
       "\n",
       "_C222: XSanaaDoha - XSanaaSanaa <= 0\n",
       "\n",
       "_C223: - XManamaManama + XManamaRiyadh <= 0\n",
       "\n",
       "_C224: - XNicosiaNicosia + XNicosiaRiyadh <= 0\n",
       "\n",
       "_C225: - XCairoCairo + XCairoRiyadh <= 0\n",
       "\n",
       "_C226: XTahranRiyadh - XTahranTahran <= 0\n",
       "\n",
       "_C227: - XBaghdadBaghdad + XBaghdadRiyadh <= 0\n",
       "\n",
       "_C228: - XJuresalemJuresalem + XJuresalemRiyadh <= 0\n",
       "\n",
       "_C229: - XAmmanAmman + XAmmanRiyadh <= 0\n",
       "\n",
       "_C230: - XKuwaitKuwait + XKuwaitRiyadh <= 0\n",
       "\n",
       "_C231: - XBeirutBeirut + XBeirutRiyadh <= 0\n",
       "\n",
       "_C232: - XMuscatMuscat + XMuscatRiyadh <= 0\n",
       "\n",
       "_C233: - XRamallahRamallah + XRamallahRiyadh <= 0\n",
       "\n",
       "_C234: - XDohaDoha + XDohaRiyadh <= 0\n",
       "\n",
       "_C235: 0 XRiyadhRiyadh <= 0\n",
       "\n",
       "_C236: - XDamascusDamascus + XDamascusRiyadh <= 0\n",
       "\n",
       "_C237: - XAnkaraAnkara + XAnkaraRiyadh <= 0\n",
       "\n",
       "_C238: - XDubaiDubai + XDubaiRiyadh <= 0\n",
       "\n",
       "_C239: XSanaaRiyadh - XSanaaSanaa <= 0\n",
       "\n",
       "_C240: XManamaDamascus - XManamaManama <= 0\n",
       "\n",
       "_C241: XNicosiaDamascus - XNicosiaNicosia <= 0\n",
       "\n",
       "_C242: - XCairoCairo + XCairoDamascus <= 0\n",
       "\n",
       "_C243: XTahranDamascus - XTahranTahran <= 0\n",
       "\n",
       "_C244: - XBaghdadBaghdad + XBaghdadDamascus <= 0\n",
       "\n",
       "_C245: XJuresalemDamascus - XJuresalemJuresalem <= 0\n",
       "\n",
       "_C246: - XAmmanAmman + XAmmanDamascus <= 0\n",
       "\n",
       "_C247: XKuwaitDamascus - XKuwaitKuwait <= 0\n",
       "\n",
       "_C248: - XBeirutBeirut + XBeirutDamascus <= 0\n",
       "\n",
       "_C249: XMuscatDamascus - XMuscatMuscat <= 0\n",
       "\n",
       "_C250: XRamallahDamascus - XRamallahRamallah <= 0\n",
       "\n",
       "_C251: XDohaDamascus - XDohaDoha <= 0\n",
       "\n",
       "_C252: XRiyadhDamascus - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C253: 0 XDamascusDamascus <= 0\n",
       "\n",
       "_C254: - XAnkaraAnkara + XAnkaraDamascus <= 0\n",
       "\n",
       "_C255: XDubaiDamascus - XDubaiDubai <= 0\n",
       "\n",
       "_C256: XSanaaDamascus - XSanaaSanaa <= 0\n",
       "\n",
       "_C257: XManamaAnkara - XManamaManama <= 0\n",
       "\n",
       "_C258: XNicosiaAnkara - XNicosiaNicosia <= 0\n",
       "\n",
       "_C259: XCairoAnkara - XCairoCairo <= 0\n",
       "\n",
       "_C260: XTahranAnkara - XTahranTahran <= 0\n",
       "\n",
       "_C261: XBaghdadAnkara - XBaghdadBaghdad <= 0\n",
       "\n",
       "_C262: XJuresalemAnkara - XJuresalemJuresalem <= 0\n",
       "\n",
       "_C263: - XAmmanAmman + XAmmanAnkara <= 0\n",
       "\n",
       "_C264: XKuwaitAnkara - XKuwaitKuwait <= 0\n",
       "\n",
       "_C265: XBeirutAnkara - XBeirutBeirut <= 0\n",
       "\n",
       "_C266: XMuscatAnkara - XMuscatMuscat <= 0\n",
       "\n",
       "_C267: XRamallahAnkara - XRamallahRamallah <= 0\n",
       "\n",
       "_C268: XDohaAnkara - XDohaDoha <= 0\n",
       "\n",
       "_C269: XRiyadhAnkara - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C270: XDamascusAnkara - XDamascusDamascus <= 0\n",
       "\n",
       "_C271: 0 XAnkaraAnkara <= 0\n",
       "\n",
       "_C272: XDubaiAnkara - XDubaiDubai <= 0\n",
       "\n",
       "_C273: XSanaaAnkara - XSanaaSanaa <= 0\n",
       "\n",
       "_C274: XManamaDubai - XManamaManama <= 0\n",
       "\n",
       "_C275: XNicosiaDubai - XNicosiaNicosia <= 0\n",
       "\n",
       "_C276: - XCairoCairo + XCairoDubai <= 0\n",
       "\n",
       "_C277: XTahranDubai - XTahranTahran <= 0\n",
       "\n",
       "_C278: - XBaghdadBaghdad + XBaghdadDubai <= 0\n",
       "\n",
       "_C279: XJuresalemDubai - XJuresalemJuresalem <= 0\n",
       "\n",
       "_C280: - XAmmanAmman + XAmmanDubai <= 0\n",
       "\n",
       "_C281: XKuwaitDubai - XKuwaitKuwait <= 0\n",
       "\n",
       "_C282: - XBeirutBeirut + XBeirutDubai <= 0\n",
       "\n",
       "_C283: XMuscatDubai - XMuscatMuscat <= 0\n",
       "\n",
       "_C284: XRamallahDubai - XRamallahRamallah <= 0\n",
       "\n",
       "_C285: - XDohaDoha + XDohaDubai <= 0\n",
       "\n",
       "_C286: XRiyadhDubai - XRiyadhRiyadh <= 0\n",
       "\n",
       "_C287: - XDamascusDamascus + XDamascusDubai <= 0\n",
       "\n",
       "_C288: - XAnkaraAnkara + XAnkaraDubai <= 0\n",
       "\n",
       "_C289: 0 XDubaiDubai <= 0\n",
       "\n",
       "_C290: XSanaaDubai - XSanaaSanaa <= 0\n",
       "\n",
       "_C291: - XManamaManama + XManamaSanaa <= 0\n",
       "\n",
       "_C292: - XNicosiaNicosia + XNicosiaSanaa <= 0\n",
       "\n",
       "_C293: - XCairoCairo + XCairoSanaa <= 0\n",
       "\n",
       "_C294: XTahranSanaa - XTahranTahran <= 0\n",
       "\n",
       "_C295: - XBaghdadBaghdad + XBaghdadSanaa <= 0\n",
       "\n",
       "_C296: - XJuresalemJuresalem + XJuresalemSanaa <= 0\n",
       "\n",
       "_C297: - XAmmanAmman + XAmmanSanaa <= 0\n",
       "\n",
       "_C298: - XKuwaitKuwait + XKuwaitSanaa <= 0\n",
       "\n",
       "_C299: - XBeirutBeirut + XBeirutSanaa <= 0\n",
       "\n",
       "_C300: - XMuscatMuscat + XMuscatSanaa <= 0\n",
       "\n",
       "_C301: - XRamallahRamallah + XRamallahSanaa <= 0\n",
       "\n",
       "_C302: - XDohaDoha + XDohaSanaa <= 0\n",
       "\n",
       "_C303: - XRiyadhRiyadh + XRiyadhSanaa <= 0\n",
       "\n",
       "_C304: - XDamascusDamascus + XDamascusSanaa <= 0\n",
       "\n",
       "_C305: - XAnkaraAnkara + XAnkaraSanaa <= 0\n",
       "\n",
       "_C306: - XDubaiDubai + XDubaiSanaa <= 0\n",
       "\n",
       "_C307: 0 XSanaaSanaa <= 0\n",
       "\n",
       "_C308: 74918 XManamaAmman + 261140 XManamaAnkara + 41442 XManamaBaghdad\n",
       " + 57754 XManamaBeirut + 83464 XManamaCairo + 29311 XManamaDamascus\n",
       " + 47563 XManamaDoha + 365711 XManamaDubai + 160110 XManamaJuresalem\n",
       " + 96669 XManamaKuwait + 31356 XManamaManama + 93204 XManamaMuscat\n",
       " + 23494 XManamaNicosia + 3378 XManamaRamallah + 397830 XManamaRiyadh\n",
       " + 10187 XManamaSanaa + 72308 XManamaTahran <= 1200000\n",
       "\n",
       "_C309: 74918 XNicosiaAmman + 261140 XNicosiaAnkara + 41442 XNicosiaBaghdad\n",
       " + 57754 XNicosiaBeirut + 83464 XNicosiaCairo + 29311 XNicosiaDamascus\n",
       " + 47563 XNicosiaDoha + 365711 XNicosiaDubai + 160110 XNicosiaJuresalem\n",
       " + 96669 XNicosiaKuwait + 31356 XNicosiaManama + 93204 XNicosiaMuscat\n",
       " + 23494 XNicosiaNicosia + 3378 XNicosiaRamallah + 397830 XNicosiaRiyadh\n",
       " + 10187 XNicosiaSanaa + 72308 XNicosiaTahran <= 1200000\n",
       "\n",
       "_C310: 74918 XCairoAmman + 261140 XCairoAnkara + 41442 XCairoBaghdad\n",
       " + 57754 XCairoBeirut + 83464 XCairoCairo + 29311 XCairoDamascus\n",
       " + 47563 XCairoDoha + 365711 XCairoDubai + 160110 XCairoJuresalem\n",
       " + 96669 XCairoKuwait + 31356 XCairoManama + 93204 XCairoMuscat\n",
       " + 23494 XCairoNicosia + 3378 XCairoRamallah + 397830 XCairoRiyadh\n",
       " + 10187 XCairoSanaa + 72308 XCairoTahran <= 1200000\n",
       "\n",
       "_C311: 74918 XTahranAmman + 261140 XTahranAnkara + 41442 XTahranBaghdad\n",
       " + 57754 XTahranBeirut + 83464 XTahranCairo + 29311 XTahranDamascus\n",
       " + 47563 XTahranDoha + 365711 XTahranDubai + 160110 XTahranJuresalem\n",
       " + 96669 XTahranKuwait + 31356 XTahranManama + 93204 XTahranMuscat\n",
       " + 23494 XTahranNicosia + 3378 XTahranRamallah + 397830 XTahranRiyadh\n",
       " + 10187 XTahranSanaa + 72308 XTahranTahran <= 1200000\n",
       "\n",
       "_C312: 74918 XBaghdadAmman + 261140 XBaghdadAnkara + 41442 XBaghdadBaghdad\n",
       " + 57754 XBaghdadBeirut + 83464 XBaghdadCairo + 29311 XBaghdadDamascus\n",
       " + 47563 XBaghdadDoha + 365711 XBaghdadDubai + 160110 XBaghdadJuresalem\n",
       " + 96669 XBaghdadKuwait + 31356 XBaghdadManama + 93204 XBaghdadMuscat\n",
       " + 23494 XBaghdadNicosia + 3378 XBaghdadRamallah + 397830 XBaghdadRiyadh\n",
       " + 10187 XBaghdadSanaa + 72308 XBaghdadTahran <= 1200000\n",
       "\n",
       "_C313: 74918 XJuresalemAmman + 261140 XJuresalemAnkara\n",
       " + 41442 XJuresalemBaghdad + 57754 XJuresalemBeirut + 83464 XJuresalemCairo\n",
       " + 29311 XJuresalemDamascus + 47563 XJuresalemDoha + 365711 XJuresalemDubai\n",
       " + 160110 XJuresalemJuresalem + 96669 XJuresalemKuwait\n",
       " + 31356 XJuresalemManama + 93204 XJuresalemMuscat + 23494 XJuresalemNicosia\n",
       " + 3378 XJuresalemRamallah + 397830 XJuresalemRiyadh + 10187 XJuresalemSanaa\n",
       " + 72308 XJuresalemTahran <= 1200000\n",
       "\n",
       "_C314: 74918 XAmmanAmman + 261140 XAmmanAnkara + 41442 XAmmanBaghdad\n",
       " + 57754 XAmmanBeirut + 83464 XAmmanCairo + 29311 XAmmanDamascus\n",
       " + 47563 XAmmanDoha + 365711 XAmmanDubai + 160110 XAmmanJuresalem\n",
       " + 96669 XAmmanKuwait + 31356 XAmmanManama + 93204 XAmmanMuscat\n",
       " + 23494 XAmmanNicosia + 3378 XAmmanRamallah + 397830 XAmmanRiyadh\n",
       " + 10187 XAmmanSanaa + 72308 XAmmanTahran <= 1200000\n",
       "\n",
       "_C315: 74918 XKuwaitAmman + 261140 XKuwaitAnkara + 41442 XKuwaitBaghdad\n",
       " + 57754 XKuwaitBeirut + 83464 XKuwaitCairo + 29311 XKuwaitDamascus\n",
       " + 47563 XKuwaitDoha + 365711 XKuwaitDubai + 160110 XKuwaitJuresalem\n",
       " + 96669 XKuwaitKuwait + 31356 XKuwaitManama + 93204 XKuwaitMuscat\n",
       " + 23494 XKuwaitNicosia + 3378 XKuwaitRamallah + 397830 XKuwaitRiyadh\n",
       " + 10187 XKuwaitSanaa + 72308 XKuwaitTahran <= 1200000\n",
       "\n",
       "_C316: 74918 XBeirutAmman + 261140 XBeirutAnkara + 41442 XBeirutBaghdad\n",
       " + 57754 XBeirutBeirut + 83464 XBeirutCairo + 29311 XBeirutDamascus\n",
       " + 47563 XBeirutDoha + 365711 XBeirutDubai + 160110 XBeirutJuresalem\n",
       " + 96669 XBeirutKuwait + 31356 XBeirutManama + 93204 XBeirutMuscat\n",
       " + 23494 XBeirutNicosia + 3378 XBeirutRamallah + 397830 XBeirutRiyadh\n",
       " + 10187 XBeirutSanaa + 72308 XBeirutTahran <= 1200000\n",
       "\n",
       "_C317: 74918 XMuscatAmman + 261140 XMuscatAnkara + 41442 XMuscatBaghdad\n",
       " + 57754 XMuscatBeirut + 83464 XMuscatCairo + 29311 XMuscatDamascus\n",
       " + 47563 XMuscatDoha + 365711 XMuscatDubai + 160110 XMuscatJuresalem\n",
       " + 96669 XMuscatKuwait + 31356 XMuscatManama + 93204 XMuscatMuscat\n",
       " + 23494 XMuscatNicosia + 3378 XMuscatRamallah + 397830 XMuscatRiyadh\n",
       " + 10187 XMuscatSanaa + 72308 XMuscatTahran <= 1200000\n",
       "\n",
       "_C318: 74918 XRamallahAmman + 261140 XRamallahAnkara + 41442 XRamallahBaghdad\n",
       " + 57754 XRamallahBeirut + 83464 XRamallahCairo + 29311 XRamallahDamascus\n",
       " + 47563 XRamallahDoha + 365711 XRamallahDubai + 160110 XRamallahJuresalem\n",
       " + 96669 XRamallahKuwait + 31356 XRamallahManama + 93204 XRamallahMuscat\n",
       " + 23494 XRamallahNicosia + 3378 XRamallahRamallah + 397830 XRamallahRiyadh\n",
       " + 10187 XRamallahSanaa + 72308 XRamallahTahran <= 1200000\n",
       "\n",
       "_C319: 74918 XDohaAmman + 261140 XDohaAnkara + 41442 XDohaBaghdad\n",
       " + 57754 XDohaBeirut + 83464 XDohaCairo + 29311 XDohaDamascus\n",
       " + 47563 XDohaDoha + 365711 XDohaDubai + 160110 XDohaJuresalem\n",
       " + 96669 XDohaKuwait + 31356 XDohaManama + 93204 XDohaMuscat\n",
       " + 23494 XDohaNicosia + 3378 XDohaRamallah + 397830 XDohaRiyadh\n",
       " + 10187 XDohaSanaa + 72308 XDohaTahran <= 1200000\n",
       "\n",
       "_C320: 74918 XRiyadhAmman + 261140 XRiyadhAnkara + 41442 XRiyadhBaghdad\n",
       " + 57754 XRiyadhBeirut + 83464 XRiyadhCairo + 29311 XRiyadhDamascus\n",
       " + 47563 XRiyadhDoha + 365711 XRiyadhDubai + 160110 XRiyadhJuresalem\n",
       " + 96669 XRiyadhKuwait + 31356 XRiyadhManama + 93204 XRiyadhMuscat\n",
       " + 23494 XRiyadhNicosia + 3378 XRiyadhRamallah + 397830 XRiyadhRiyadh\n",
       " + 10187 XRiyadhSanaa + 72308 XRiyadhTahran <= 1200000\n",
       "\n",
       "_C321: 74918 XDamascusAmman + 261140 XDamascusAnkara + 41442 XDamascusBaghdad\n",
       " + 57754 XDamascusBeirut + 83464 XDamascusCairo + 29311 XDamascusDamascus\n",
       " + 47563 XDamascusDoha + 365711 XDamascusDubai + 160110 XDamascusJuresalem\n",
       " + 96669 XDamascusKuwait + 31356 XDamascusManama + 93204 XDamascusMuscat\n",
       " + 23494 XDamascusNicosia + 3378 XDamascusRamallah + 397830 XDamascusRiyadh\n",
       " + 10187 XDamascusSanaa + 72308 XDamascusTahran <= 1200000\n",
       "\n",
       "_C322: 74918 XAnkaraAmman + 261140 XAnkaraAnkara + 41442 XAnkaraBaghdad\n",
       " + 57754 XAnkaraBeirut + 83464 XAnkaraCairo + 29311 XAnkaraDamascus\n",
       " + 47563 XAnkaraDoha + 365711 XAnkaraDubai + 160110 XAnkaraJuresalem\n",
       " + 96669 XAnkaraKuwait + 31356 XAnkaraManama + 93204 XAnkaraMuscat\n",
       " + 23494 XAnkaraNicosia + 3378 XAnkaraRamallah + 397830 XAnkaraRiyadh\n",
       " + 10187 XAnkaraSanaa + 72308 XAnkaraTahran <= 1200000\n",
       "\n",
       "_C323: 74918 XDubaiAmman + 261140 XDubaiAnkara + 41442 XDubaiBaghdad\n",
       " + 57754 XDubaiBeirut + 83464 XDubaiCairo + 29311 XDubaiDamascus\n",
       " + 47563 XDubaiDoha + 365711 XDubaiDubai + 160110 XDubaiJuresalem\n",
       " + 96669 XDubaiKuwait + 31356 XDubaiManama + 93204 XDubaiMuscat\n",
       " + 23494 XDubaiNicosia + 3378 XDubaiRamallah + 397830 XDubaiRiyadh\n",
       " + 10187 XDubaiSanaa + 72308 XDubaiTahran <= 1200000\n",
       "\n",
       "_C324: 74918 XSanaaAmman + 261140 XSanaaAnkara + 41442 XSanaaBaghdad\n",
       " + 57754 XSanaaBeirut + 83464 XSanaaCairo + 29311 XSanaaDamascus\n",
       " + 47563 XSanaaDoha + 365711 XSanaaDubai + 160110 XSanaaJuresalem\n",
       " + 96669 XSanaaKuwait + 31356 XSanaaManama + 93204 XSanaaMuscat\n",
       " + 23494 XSanaaNicosia + 3378 XSanaaRamallah + 397830 XSanaaRiyadh\n",
       " + 10187 XSanaaSanaa + 72308 XSanaaTahran <= 1200000\n",
       "\n",
       "VARIABLES\n",
       "0 <= XAmmanAmman <= 1 Integer\n",
       "0 <= XAmmanAnkara <= 1 Integer\n",
       "0 <= XAmmanBaghdad <= 1 Integer\n",
       "0 <= XAmmanBeirut <= 1 Integer\n",
       "0 <= XAmmanCairo <= 1 Integer\n",
       "0 <= XAmmanDamascus <= 1 Integer\n",
       "0 <= XAmmanDoha <= 1 Integer\n",
       "0 <= XAmmanDubai <= 1 Integer\n",
       "0 <= XAmmanJuresalem <= 1 Integer\n",
       "0 <= XAmmanKuwait <= 1 Integer\n",
       "0 <= XAmmanManama <= 1 Integer\n",
       "0 <= XAmmanMuscat <= 1 Integer\n",
       "0 <= XAmmanNicosia <= 1 Integer\n",
       "0 <= XAmmanRamallah <= 1 Integer\n",
       "0 <= XAmmanRiyadh <= 1 Integer\n",
       "0 <= XAmmanSanaa <= 1 Integer\n",
       "0 <= XAmmanTahran <= 1 Integer\n",
       "0 <= XAnkaraAmman <= 1 Integer\n",
       "0 <= XAnkaraAnkara <= 1 Integer\n",
       "0 <= XAnkaraBaghdad <= 1 Integer\n",
       "0 <= XAnkaraBeirut <= 1 Integer\n",
       "0 <= XAnkaraCairo <= 1 Integer\n",
       "0 <= XAnkaraDamascus <= 1 Integer\n",
       "0 <= XAnkaraDoha <= 1 Integer\n",
       "0 <= XAnkaraDubai <= 1 Integer\n",
       "0 <= XAnkaraJuresalem <= 1 Integer\n",
       "0 <= XAnkaraKuwait <= 1 Integer\n",
       "0 <= XAnkaraManama <= 1 Integer\n",
       "0 <= XAnkaraMuscat <= 1 Integer\n",
       "0 <= XAnkaraNicosia <= 1 Integer\n",
       "0 <= XAnkaraRamallah <= 1 Integer\n",
       "0 <= XAnkaraRiyadh <= 1 Integer\n",
       "0 <= XAnkaraSanaa <= 1 Integer\n",
       "0 <= XAnkaraTahran <= 1 Integer\n",
       "0 <= XBaghdadAmman <= 1 Integer\n",
       "0 <= XBaghdadAnkara <= 1 Integer\n",
       "0 <= XBaghdadBaghdad <= 1 Integer\n",
       "0 <= XBaghdadBeirut <= 1 Integer\n",
       "0 <= XBaghdadCairo <= 1 Integer\n",
       "0 <= XBaghdadDamascus <= 1 Integer\n",
       "0 <= XBaghdadDoha <= 1 Integer\n",
       "0 <= XBaghdadDubai <= 1 Integer\n",
       "0 <= XBaghdadJuresalem <= 1 Integer\n",
       "0 <= XBaghdadKuwait <= 1 Integer\n",
       "0 <= XBaghdadManama <= 1 Integer\n",
       "0 <= XBaghdadMuscat <= 1 Integer\n",
       "0 <= XBaghdadNicosia <= 1 Integer\n",
       "0 <= XBaghdadRamallah <= 1 Integer\n",
       "0 <= XBaghdadRiyadh <= 1 Integer\n",
       "0 <= XBaghdadSanaa <= 1 Integer\n",
       "0 <= XBaghdadTahran <= 1 Integer\n",
       "0 <= XBeirutAmman <= 1 Integer\n",
       "0 <= XBeirutAnkara <= 1 Integer\n",
       "0 <= XBeirutBaghdad <= 1 Integer\n",
       "0 <= XBeirutBeirut <= 1 Integer\n",
       "0 <= XBeirutCairo <= 1 Integer\n",
       "0 <= XBeirutDamascus <= 1 Integer\n",
       "0 <= XBeirutDoha <= 1 Integer\n",
       "0 <= XBeirutDubai <= 1 Integer\n",
       "0 <= XBeirutJuresalem <= 1 Integer\n",
       "0 <= XBeirutKuwait <= 1 Integer\n",
       "0 <= XBeirutManama <= 1 Integer\n",
       "0 <= XBeirutMuscat <= 1 Integer\n",
       "0 <= XBeirutNicosia <= 1 Integer\n",
       "0 <= XBeirutRamallah <= 1 Integer\n",
       "0 <= XBeirutRiyadh <= 1 Integer\n",
       "0 <= XBeirutSanaa <= 1 Integer\n",
       "0 <= XBeirutTahran <= 1 Integer\n",
       "0 <= XCairoAmman <= 1 Integer\n",
       "0 <= XCairoAnkara <= 1 Integer\n",
       "0 <= XCairoBaghdad <= 1 Integer\n",
       "0 <= XCairoBeirut <= 1 Integer\n",
       "0 <= XCairoCairo <= 1 Integer\n",
       "0 <= XCairoDamascus <= 1 Integer\n",
       "0 <= XCairoDoha <= 1 Integer\n",
       "0 <= XCairoDubai <= 1 Integer\n",
       "0 <= XCairoJuresalem <= 1 Integer\n",
       "0 <= XCairoKuwait <= 1 Integer\n",
       "0 <= XCairoManama <= 1 Integer\n",
       "0 <= XCairoMuscat <= 1 Integer\n",
       "0 <= XCairoNicosia <= 1 Integer\n",
       "0 <= XCairoRamallah <= 1 Integer\n",
       "0 <= XCairoRiyadh <= 1 Integer\n",
       "0 <= XCairoSanaa <= 1 Integer\n",
       "0 <= XCairoTahran <= 1 Integer\n",
       "0 <= XDamascusAmman <= 1 Integer\n",
       "0 <= XDamascusAnkara <= 1 Integer\n",
       "0 <= XDamascusBaghdad <= 1 Integer\n",
       "0 <= XDamascusBeirut <= 1 Integer\n",
       "0 <= XDamascusCairo <= 1 Integer\n",
       "0 <= XDamascusDamascus <= 1 Integer\n",
       "0 <= XDamascusDoha <= 1 Integer\n",
       "0 <= XDamascusDubai <= 1 Integer\n",
       "0 <= XDamascusJuresalem <= 1 Integer\n",
       "0 <= XDamascusKuwait <= 1 Integer\n",
       "0 <= XDamascusManama <= 1 Integer\n",
       "0 <= XDamascusMuscat <= 1 Integer\n",
       "0 <= XDamascusNicosia <= 1 Integer\n",
       "0 <= XDamascusRamallah <= 1 Integer\n",
       "0 <= XDamascusRiyadh <= 1 Integer\n",
       "0 <= XDamascusSanaa <= 1 Integer\n",
       "0 <= XDamascusTahran <= 1 Integer\n",
       "0 <= XDohaAmman <= 1 Integer\n",
       "0 <= XDohaAnkara <= 1 Integer\n",
       "0 <= XDohaBaghdad <= 1 Integer\n",
       "0 <= XDohaBeirut <= 1 Integer\n",
       "0 <= XDohaCairo <= 1 Integer\n",
       "0 <= XDohaDamascus <= 1 Integer\n",
       "0 <= XDohaDoha <= 1 Integer\n",
       "0 <= XDohaDubai <= 1 Integer\n",
       "0 <= XDohaJuresalem <= 1 Integer\n",
       "0 <= XDohaKuwait <= 1 Integer\n",
       "0 <= XDohaManama <= 1 Integer\n",
       "0 <= XDohaMuscat <= 1 Integer\n",
       "0 <= XDohaNicosia <= 1 Integer\n",
       "0 <= XDohaRamallah <= 1 Integer\n",
       "0 <= XDohaRiyadh <= 1 Integer\n",
       "0 <= XDohaSanaa <= 1 Integer\n",
       "0 <= XDohaTahran <= 1 Integer\n",
       "0 <= XDubaiAmman <= 1 Integer\n",
       "0 <= XDubaiAnkara <= 1 Integer\n",
       "0 <= XDubaiBaghdad <= 1 Integer\n",
       "0 <= XDubaiBeirut <= 1 Integer\n",
       "0 <= XDubaiCairo <= 1 Integer\n",
       "0 <= XDubaiDamascus <= 1 Integer\n",
       "0 <= XDubaiDoha <= 1 Integer\n",
       "0 <= XDubaiDubai <= 1 Integer\n",
       "0 <= XDubaiJuresalem <= 1 Integer\n",
       "0 <= XDubaiKuwait <= 1 Integer\n",
       "0 <= XDubaiManama <= 1 Integer\n",
       "0 <= XDubaiMuscat <= 1 Integer\n",
       "0 <= XDubaiNicosia <= 1 Integer\n",
       "0 <= XDubaiRamallah <= 1 Integer\n",
       "0 <= XDubaiRiyadh <= 1 Integer\n",
       "0 <= XDubaiSanaa <= 1 Integer\n",
       "0 <= XDubaiTahran <= 1 Integer\n",
       "0 <= XJuresalemAmman <= 1 Integer\n",
       "0 <= XJuresalemAnkara <= 1 Integer\n",
       "0 <= XJuresalemBaghdad <= 1 Integer\n",
       "0 <= XJuresalemBeirut <= 1 Integer\n",
       "0 <= XJuresalemCairo <= 1 Integer\n",
       "0 <= XJuresalemDamascus <= 1 Integer\n",
       "0 <= XJuresalemDoha <= 1 Integer\n",
       "0 <= XJuresalemDubai <= 1 Integer\n",
       "0 <= XJuresalemJuresalem <= 1 Integer\n",
       "0 <= XJuresalemKuwait <= 1 Integer\n",
       "0 <= XJuresalemManama <= 1 Integer\n",
       "0 <= XJuresalemMuscat <= 1 Integer\n",
       "0 <= XJuresalemNicosia <= 1 Integer\n",
       "0 <= XJuresalemRamallah <= 1 Integer\n",
       "0 <= XJuresalemRiyadh <= 1 Integer\n",
       "0 <= XJuresalemSanaa <= 1 Integer\n",
       "0 <= XJuresalemTahran <= 1 Integer\n",
       "0 <= XKuwaitAmman <= 1 Integer\n",
       "0 <= XKuwaitAnkara <= 1 Integer\n",
       "0 <= XKuwaitBaghdad <= 1 Integer\n",
       "0 <= XKuwaitBeirut <= 1 Integer\n",
       "0 <= XKuwaitCairo <= 1 Integer\n",
       "0 <= XKuwaitDamascus <= 1 Integer\n",
       "0 <= XKuwaitDoha <= 1 Integer\n",
       "0 <= XKuwaitDubai <= 1 Integer\n",
       "0 <= XKuwaitJuresalem <= 1 Integer\n",
       "0 <= XKuwaitKuwait <= 1 Integer\n",
       "0 <= XKuwaitManama <= 1 Integer\n",
       "0 <= XKuwaitMuscat <= 1 Integer\n",
       "0 <= XKuwaitNicosia <= 1 Integer\n",
       "0 <= XKuwaitRamallah <= 1 Integer\n",
       "0 <= XKuwaitRiyadh <= 1 Integer\n",
       "0 <= XKuwaitSanaa <= 1 Integer\n",
       "0 <= XKuwaitTahran <= 1 Integer\n",
       "0 <= XManamaAmman <= 1 Integer\n",
       "0 <= XManamaAnkara <= 1 Integer\n",
       "0 <= XManamaBaghdad <= 1 Integer\n",
       "0 <= XManamaBeirut <= 1 Integer\n",
       "0 <= XManamaCairo <= 1 Integer\n",
       "0 <= XManamaDamascus <= 1 Integer\n",
       "0 <= XManamaDoha <= 1 Integer\n",
       "0 <= XManamaDubai <= 1 Integer\n",
       "0 <= XManamaJuresalem <= 1 Integer\n",
       "0 <= XManamaKuwait <= 1 Integer\n",
       "0 <= XManamaManama <= 1 Integer\n",
       "0 <= XManamaMuscat <= 1 Integer\n",
       "0 <= XManamaNicosia <= 1 Integer\n",
       "0 <= XManamaRamallah <= 1 Integer\n",
       "0 <= XManamaRiyadh <= 1 Integer\n",
       "0 <= XManamaSanaa <= 1 Integer\n",
       "0 <= XManamaTahran <= 1 Integer\n",
       "0 <= XMuscatAmman <= 1 Integer\n",
       "0 <= XMuscatAnkara <= 1 Integer\n",
       "0 <= XMuscatBaghdad <= 1 Integer\n",
       "0 <= XMuscatBeirut <= 1 Integer\n",
       "0 <= XMuscatCairo <= 1 Integer\n",
       "0 <= XMuscatDamascus <= 1 Integer\n",
       "0 <= XMuscatDoha <= 1 Integer\n",
       "0 <= XMuscatDubai <= 1 Integer\n",
       "0 <= XMuscatJuresalem <= 1 Integer\n",
       "0 <= XMuscatKuwait <= 1 Integer\n",
       "0 <= XMuscatManama <= 1 Integer\n",
       "0 <= XMuscatMuscat <= 1 Integer\n",
       "0 <= XMuscatNicosia <= 1 Integer\n",
       "0 <= XMuscatRamallah <= 1 Integer\n",
       "0 <= XMuscatRiyadh <= 1 Integer\n",
       "0 <= XMuscatSanaa <= 1 Integer\n",
       "0 <= XMuscatTahran <= 1 Integer\n",
       "0 <= XNicosiaAmman <= 1 Integer\n",
       "0 <= XNicosiaAnkara <= 1 Integer\n",
       "0 <= XNicosiaBaghdad <= 1 Integer\n",
       "0 <= XNicosiaBeirut <= 1 Integer\n",
       "0 <= XNicosiaCairo <= 1 Integer\n",
       "0 <= XNicosiaDamascus <= 1 Integer\n",
       "0 <= XNicosiaDoha <= 1 Integer\n",
       "0 <= XNicosiaDubai <= 1 Integer\n",
       "0 <= XNicosiaJuresalem <= 1 Integer\n",
       "0 <= XNicosiaKuwait <= 1 Integer\n",
       "0 <= XNicosiaManama <= 1 Integer\n",
       "0 <= XNicosiaMuscat <= 1 Integer\n",
       "0 <= XNicosiaNicosia <= 1 Integer\n",
       "0 <= XNicosiaRamallah <= 1 Integer\n",
       "0 <= XNicosiaRiyadh <= 1 Integer\n",
       "0 <= XNicosiaSanaa <= 1 Integer\n",
       "0 <= XNicosiaTahran <= 1 Integer\n",
       "0 <= XRamallahAmman <= 1 Integer\n",
       "0 <= XRamallahAnkara <= 1 Integer\n",
       "0 <= XRamallahBaghdad <= 1 Integer\n",
       "0 <= XRamallahBeirut <= 1 Integer\n",
       "0 <= XRamallahCairo <= 1 Integer\n",
       "0 <= XRamallahDamascus <= 1 Integer\n",
       "0 <= XRamallahDoha <= 1 Integer\n",
       "0 <= XRamallahDubai <= 1 Integer\n",
       "0 <= XRamallahJuresalem <= 1 Integer\n",
       "0 <= XRamallahKuwait <= 1 Integer\n",
       "0 <= XRamallahManama <= 1 Integer\n",
       "0 <= XRamallahMuscat <= 1 Integer\n",
       "0 <= XRamallahNicosia <= 1 Integer\n",
       "0 <= XRamallahRamallah <= 1 Integer\n",
       "0 <= XRamallahRiyadh <= 1 Integer\n",
       "0 <= XRamallahSanaa <= 1 Integer\n",
       "0 <= XRamallahTahran <= 1 Integer\n",
       "0 <= XRiyadhAmman <= 1 Integer\n",
       "0 <= XRiyadhAnkara <= 1 Integer\n",
       "0 <= XRiyadhBaghdad <= 1 Integer\n",
       "0 <= XRiyadhBeirut <= 1 Integer\n",
       "0 <= XRiyadhCairo <= 1 Integer\n",
       "0 <= XRiyadhDamascus <= 1 Integer\n",
       "0 <= XRiyadhDoha <= 1 Integer\n",
       "0 <= XRiyadhDubai <= 1 Integer\n",
       "0 <= XRiyadhJuresalem <= 1 Integer\n",
       "0 <= XRiyadhKuwait <= 1 Integer\n",
       "0 <= XRiyadhManama <= 1 Integer\n",
       "0 <= XRiyadhMuscat <= 1 Integer\n",
       "0 <= XRiyadhNicosia <= 1 Integer\n",
       "0 <= XRiyadhRamallah <= 1 Integer\n",
       "0 <= XRiyadhRiyadh <= 1 Integer\n",
       "0 <= XRiyadhSanaa <= 1 Integer\n",
       "0 <= XRiyadhTahran <= 1 Integer\n",
       "0 <= XSanaaAmman <= 1 Integer\n",
       "0 <= XSanaaAnkara <= 1 Integer\n",
       "0 <= XSanaaBaghdad <= 1 Integer\n",
       "0 <= XSanaaBeirut <= 1 Integer\n",
       "0 <= XSanaaCairo <= 1 Integer\n",
       "0 <= XSanaaDamascus <= 1 Integer\n",
       "0 <= XSanaaDoha <= 1 Integer\n",
       "0 <= XSanaaDubai <= 1 Integer\n",
       "0 <= XSanaaJuresalem <= 1 Integer\n",
       "0 <= XSanaaKuwait <= 1 Integer\n",
       "0 <= XSanaaManama <= 1 Integer\n",
       "0 <= XSanaaMuscat <= 1 Integer\n",
       "0 <= XSanaaNicosia <= 1 Integer\n",
       "0 <= XSanaaRamallah <= 1 Integer\n",
       "0 <= XSanaaRiyadh <= 1 Integer\n",
       "0 <= XSanaaSanaa <= 1 Integer\n",
       "0 <= XSanaaTahran <= 1 Integer\n",
       "0 <= XTahranAmman <= 1 Integer\n",
       "0 <= XTahranAnkara <= 1 Integer\n",
       "0 <= XTahranBaghdad <= 1 Integer\n",
       "0 <= XTahranBeirut <= 1 Integer\n",
       "0 <= XTahranCairo <= 1 Integer\n",
       "0 <= XTahranDamascus <= 1 Integer\n",
       "0 <= XTahranDoha <= 1 Integer\n",
       "0 <= XTahranDubai <= 1 Integer\n",
       "0 <= XTahranJuresalem <= 1 Integer\n",
       "0 <= XTahranKuwait <= 1 Integer\n",
       "0 <= XTahranManama <= 1 Integer\n",
       "0 <= XTahranMuscat <= 1 Integer\n",
       "0 <= XTahranNicosia <= 1 Integer\n",
       "0 <= XTahranRamallah <= 1 Integer\n",
       "0 <= XTahranRiyadh <= 1 Integer\n",
       "0 <= XTahranSanaa <= 1 Integer\n",
       "0 <= XTahranTahran <= 1 Integer"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#Setting up constraints\n",
    "plant_numbers=2\n",
    "prob+= sum(X[i][i] for i in demand_points)==plant_numbers\n",
    "\n",
    "for j in demand_points:\n",
    "    prob+= sum(X[i][j] for i in demand_points)==1\n",
    "    \n",
    "for j in demand_points:\n",
    "    for i in demand_points:\n",
    "        prob+= X[i][j]<=X[i][i] \n",
    "        \n",
    "for i in demand_points:\n",
    "    prob+= sum(vehicle_demands[j]*X[i][j] for j in demand_points) <= 1200000\n",
    "        \n",
    "prob\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Saving the model to a lp file\n",
    "prob.writeLP(\"p-median.lp\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Status: Optimal\n",
      "Objective:  905024083.0\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "{'XAmmanAmman': 0.0,\n",
       " 'XAmmanAnkara': 0.0,\n",
       " 'XAmmanBaghdad': 0.0,\n",
       " 'XAmmanBeirut': 0.0,\n",
       " 'XAmmanCairo': 0.0,\n",
       " 'XAmmanDamascus': 0.0,\n",
       " 'XAmmanDoha': 0.0,\n",
       " 'XAmmanDubai': 0.0,\n",
       " 'XAmmanJuresalem': 0.0,\n",
       " 'XAmmanKuwait': 0.0,\n",
       " 'XAmmanManama': 0.0,\n",
       " 'XAmmanMuscat': 0.0,\n",
       " 'XAmmanNicosia': 0.0,\n",
       " 'XAmmanRamallah': 0.0,\n",
       " 'XAmmanRiyadh': 0.0,\n",
       " 'XAmmanSanaa': 0.0,\n",
       " 'XAmmanTahran': 0.0,\n",
       " 'XAnkaraAmman': 0.0,\n",
       " 'XAnkaraAnkara': 0.0,\n",
       " 'XAnkaraBaghdad': 0.0,\n",
       " 'XAnkaraBeirut': 0.0,\n",
       " 'XAnkaraCairo': 0.0,\n",
       " 'XAnkaraDamascus': 0.0,\n",
       " 'XAnkaraDoha': 0.0,\n",
       " 'XAnkaraDubai': 0.0,\n",
       " 'XAnkaraJuresalem': 0.0,\n",
       " 'XAnkaraKuwait': 0.0,\n",
       " 'XAnkaraManama': 0.0,\n",
       " 'XAnkaraMuscat': 0.0,\n",
       " 'XAnkaraNicosia': 0.0,\n",
       " 'XAnkaraRamallah': 0.0,\n",
       " 'XAnkaraRiyadh': 0.0,\n",
       " 'XAnkaraSanaa': 0.0,\n",
       " 'XAnkaraTahran': 0.0,\n",
       " 'XBaghdadAmman': 0.0,\n",
       " 'XBaghdadAnkara': 0.0,\n",
       " 'XBaghdadBaghdad': 0.0,\n",
       " 'XBaghdadBeirut': 0.0,\n",
       " 'XBaghdadCairo': 0.0,\n",
       " 'XBaghdadDamascus': 0.0,\n",
       " 'XBaghdadDoha': 0.0,\n",
       " 'XBaghdadDubai': 0.0,\n",
       " 'XBaghdadJuresalem': 0.0,\n",
       " 'XBaghdadKuwait': 0.0,\n",
       " 'XBaghdadManama': 0.0,\n",
       " 'XBaghdadMuscat': 0.0,\n",
       " 'XBaghdadNicosia': 0.0,\n",
       " 'XBaghdadRamallah': 0.0,\n",
       " 'XBaghdadRiyadh': 0.0,\n",
       " 'XBaghdadSanaa': 0.0,\n",
       " 'XBaghdadTahran': 0.0,\n",
       " 'XBeirutAmman': 0.0,\n",
       " 'XBeirutAnkara': 0.0,\n",
       " 'XBeirutBaghdad': 0.0,\n",
       " 'XBeirutBeirut': 0.0,\n",
       " 'XBeirutCairo': 0.0,\n",
       " 'XBeirutDamascus': 0.0,\n",
       " 'XBeirutDoha': 0.0,\n",
       " 'XBeirutDubai': 0.0,\n",
       " 'XBeirutJuresalem': 0.0,\n",
       " 'XBeirutKuwait': 0.0,\n",
       " 'XBeirutManama': 0.0,\n",
       " 'XBeirutMuscat': 0.0,\n",
       " 'XBeirutNicosia': 0.0,\n",
       " 'XBeirutRamallah': 0.0,\n",
       " 'XBeirutRiyadh': 0.0,\n",
       " 'XBeirutSanaa': 0.0,\n",
       " 'XBeirutTahran': 0.0,\n",
       " 'XCairoAmman': 0.0,\n",
       " 'XCairoAnkara': 0.0,\n",
       " 'XCairoBaghdad': 0.0,\n",
       " 'XCairoBeirut': 0.0,\n",
       " 'XCairoCairo': 0.0,\n",
       " 'XCairoDamascus': 0.0,\n",
       " 'XCairoDoha': 0.0,\n",
       " 'XCairoDubai': 0.0,\n",
       " 'XCairoJuresalem': 0.0,\n",
       " 'XCairoKuwait': 0.0,\n",
       " 'XCairoManama': 0.0,\n",
       " 'XCairoMuscat': 0.0,\n",
       " 'XCairoNicosia': 0.0,\n",
       " 'XCairoRamallah': 0.0,\n",
       " 'XCairoRiyadh': 0.0,\n",
       " 'XCairoSanaa': 0.0,\n",
       " 'XCairoTahran': 0.0,\n",
       " 'XDamascusAmman': 0.0,\n",
       " 'XDamascusAnkara': 0.0,\n",
       " 'XDamascusBaghdad': 0.0,\n",
       " 'XDamascusBeirut': 0.0,\n",
       " 'XDamascusCairo': 0.0,\n",
       " 'XDamascusDamascus': 0.0,\n",
       " 'XDamascusDoha': 0.0,\n",
       " 'XDamascusDubai': 0.0,\n",
       " 'XDamascusJuresalem': 0.0,\n",
       " 'XDamascusKuwait': 0.0,\n",
       " 'XDamascusManama': 0.0,\n",
       " 'XDamascusMuscat': 0.0,\n",
       " 'XDamascusNicosia': 0.0,\n",
       " 'XDamascusRamallah': 0.0,\n",
       " 'XDamascusRiyadh': 0.0,\n",
       " 'XDamascusSanaa': 0.0,\n",
       " 'XDamascusTahran': 0.0,\n",
       " 'XDohaAmman': 0.0,\n",
       " 'XDohaAnkara': 0.0,\n",
       " 'XDohaBaghdad': 0.0,\n",
       " 'XDohaBeirut': 0.0,\n",
       " 'XDohaCairo': 0.0,\n",
       " 'XDohaDamascus': 0.0,\n",
       " 'XDohaDoha': 1.0,\n",
       " 'XDohaDubai': 1.0,\n",
       " 'XDohaJuresalem': 0.0,\n",
       " 'XDohaKuwait': 1.0,\n",
       " 'XDohaManama': 1.0,\n",
       " 'XDohaMuscat': 1.0,\n",
       " 'XDohaNicosia': 0.0,\n",
       " 'XDohaRamallah': 0.0,\n",
       " 'XDohaRiyadh': 1.0,\n",
       " 'XDohaSanaa': 1.0,\n",
       " 'XDohaTahran': 1.0,\n",
       " 'XDubaiAmman': 0.0,\n",
       " 'XDubaiAnkara': 0.0,\n",
       " 'XDubaiBaghdad': 0.0,\n",
       " 'XDubaiBeirut': 0.0,\n",
       " 'XDubaiCairo': 0.0,\n",
       " 'XDubaiDamascus': 0.0,\n",
       " 'XDubaiDoha': 0.0,\n",
       " 'XDubaiDubai': 0.0,\n",
       " 'XDubaiJuresalem': 0.0,\n",
       " 'XDubaiKuwait': 0.0,\n",
       " 'XDubaiManama': 0.0,\n",
       " 'XDubaiMuscat': 0.0,\n",
       " 'XDubaiNicosia': 0.0,\n",
       " 'XDubaiRamallah': 0.0,\n",
       " 'XDubaiRiyadh': 0.0,\n",
       " 'XDubaiSanaa': 0.0,\n",
       " 'XDubaiTahran': 0.0,\n",
       " 'XJuresalemAmman': 1.0,\n",
       " 'XJuresalemAnkara': 1.0,\n",
       " 'XJuresalemBaghdad': 1.0,\n",
       " 'XJuresalemBeirut': 1.0,\n",
       " 'XJuresalemCairo': 1.0,\n",
       " 'XJuresalemDamascus': 1.0,\n",
       " 'XJuresalemDoha': 0.0,\n",
       " 'XJuresalemDubai': 0.0,\n",
       " 'XJuresalemJuresalem': 1.0,\n",
       " 'XJuresalemKuwait': 0.0,\n",
       " 'XJuresalemManama': 0.0,\n",
       " 'XJuresalemMuscat': 0.0,\n",
       " 'XJuresalemNicosia': 1.0,\n",
       " 'XJuresalemRamallah': 1.0,\n",
       " 'XJuresalemRiyadh': 0.0,\n",
       " 'XJuresalemSanaa': 0.0,\n",
       " 'XJuresalemTahran': 0.0,\n",
       " 'XKuwaitAmman': 0.0,\n",
       " 'XKuwaitAnkara': 0.0,\n",
       " 'XKuwaitBaghdad': 0.0,\n",
       " 'XKuwaitBeirut': 0.0,\n",
       " 'XKuwaitCairo': 0.0,\n",
       " 'XKuwaitDamascus': 0.0,\n",
       " 'XKuwaitDoha': 0.0,\n",
       " 'XKuwaitDubai': 0.0,\n",
       " 'XKuwaitJuresalem': 0.0,\n",
       " 'XKuwaitKuwait': 0.0,\n",
       " 'XKuwaitManama': 0.0,\n",
       " 'XKuwaitMuscat': 0.0,\n",
       " 'XKuwaitNicosia': 0.0,\n",
       " 'XKuwaitRamallah': 0.0,\n",
       " 'XKuwaitRiyadh': 0.0,\n",
       " 'XKuwaitSanaa': 0.0,\n",
       " 'XKuwaitTahran': 0.0,\n",
       " 'XManamaAmman': 0.0,\n",
       " 'XManamaAnkara': 0.0,\n",
       " 'XManamaBaghdad': 0.0,\n",
       " 'XManamaBeirut': 0.0,\n",
       " 'XManamaCairo': 0.0,\n",
       " 'XManamaDamascus': 0.0,\n",
       " 'XManamaDoha': 0.0,\n",
       " 'XManamaDubai': 0.0,\n",
       " 'XManamaJuresalem': 0.0,\n",
       " 'XManamaKuwait': 0.0,\n",
       " 'XManamaManama': 0.0,\n",
       " 'XManamaMuscat': 0.0,\n",
       " 'XManamaNicosia': 0.0,\n",
       " 'XManamaRamallah': 0.0,\n",
       " 'XManamaRiyadh': 0.0,\n",
       " 'XManamaSanaa': 0.0,\n",
       " 'XManamaTahran': 0.0,\n",
       " 'XMuscatAmman': 0.0,\n",
       " 'XMuscatAnkara': 0.0,\n",
       " 'XMuscatBaghdad': 0.0,\n",
       " 'XMuscatBeirut': 0.0,\n",
       " 'XMuscatCairo': 0.0,\n",
       " 'XMuscatDamascus': 0.0,\n",
       " 'XMuscatDoha': 0.0,\n",
       " 'XMuscatDubai': 0.0,\n",
       " 'XMuscatJuresalem': 0.0,\n",
       " 'XMuscatKuwait': 0.0,\n",
       " 'XMuscatManama': 0.0,\n",
       " 'XMuscatMuscat': 0.0,\n",
       " 'XMuscatNicosia': 0.0,\n",
       " 'XMuscatRamallah': 0.0,\n",
       " 'XMuscatRiyadh': 0.0,\n",
       " 'XMuscatSanaa': 0.0,\n",
       " 'XMuscatTahran': 0.0,\n",
       " 'XNicosiaAmman': 0.0,\n",
       " 'XNicosiaAnkara': 0.0,\n",
       " 'XNicosiaBaghdad': 0.0,\n",
       " 'XNicosiaBeirut': 0.0,\n",
       " 'XNicosiaCairo': 0.0,\n",
       " 'XNicosiaDamascus': 0.0,\n",
       " 'XNicosiaDoha': 0.0,\n",
       " 'XNicosiaDubai': 0.0,\n",
       " 'XNicosiaJuresalem': 0.0,\n",
       " 'XNicosiaKuwait': 0.0,\n",
       " 'XNicosiaManama': 0.0,\n",
       " 'XNicosiaMuscat': 0.0,\n",
       " 'XNicosiaNicosia': 0.0,\n",
       " 'XNicosiaRamallah': 0.0,\n",
       " 'XNicosiaRiyadh': 0.0,\n",
       " 'XNicosiaSanaa': 0.0,\n",
       " 'XNicosiaTahran': 0.0,\n",
       " 'XRamallahAmman': 0.0,\n",
       " 'XRamallahAnkara': 0.0,\n",
       " 'XRamallahBaghdad': 0.0,\n",
       " 'XRamallahBeirut': 0.0,\n",
       " 'XRamallahCairo': 0.0,\n",
       " 'XRamallahDamascus': 0.0,\n",
       " 'XRamallahDoha': 0.0,\n",
       " 'XRamallahDubai': 0.0,\n",
       " 'XRamallahJuresalem': 0.0,\n",
       " 'XRamallahKuwait': 0.0,\n",
       " 'XRamallahManama': 0.0,\n",
       " 'XRamallahMuscat': 0.0,\n",
       " 'XRamallahNicosia': 0.0,\n",
       " 'XRamallahRamallah': 0.0,\n",
       " 'XRamallahRiyadh': 0.0,\n",
       " 'XRamallahSanaa': 0.0,\n",
       " 'XRamallahTahran': 0.0,\n",
       " 'XRiyadhAmman': 0.0,\n",
       " 'XRiyadhAnkara': 0.0,\n",
       " 'XRiyadhBaghdad': 0.0,\n",
       " 'XRiyadhBeirut': 0.0,\n",
       " 'XRiyadhCairo': 0.0,\n",
       " 'XRiyadhDamascus': 0.0,\n",
       " 'XRiyadhDoha': 0.0,\n",
       " 'XRiyadhDubai': 0.0,\n",
       " 'XRiyadhJuresalem': 0.0,\n",
       " 'XRiyadhKuwait': 0.0,\n",
       " 'XRiyadhManama': 0.0,\n",
       " 'XRiyadhMuscat': 0.0,\n",
       " 'XRiyadhNicosia': 0.0,\n",
       " 'XRiyadhRamallah': 0.0,\n",
       " 'XRiyadhRiyadh': 0.0,\n",
       " 'XRiyadhSanaa': 0.0,\n",
       " 'XRiyadhTahran': 0.0,\n",
       " 'XSanaaAmman': 0.0,\n",
       " 'XSanaaAnkara': 0.0,\n",
       " 'XSanaaBaghdad': 0.0,\n",
       " 'XSanaaBeirut': 0.0,\n",
       " 'XSanaaCairo': 0.0,\n",
       " 'XSanaaDamascus': 0.0,\n",
       " 'XSanaaDoha': 0.0,\n",
       " 'XSanaaDubai': 0.0,\n",
       " 'XSanaaJuresalem': 0.0,\n",
       " 'XSanaaKuwait': 0.0,\n",
       " 'XSanaaManama': 0.0,\n",
       " 'XSanaaMuscat': 0.0,\n",
       " 'XSanaaNicosia': 0.0,\n",
       " 'XSanaaRamallah': 0.0,\n",
       " 'XSanaaRiyadh': 0.0,\n",
       " 'XSanaaSanaa': 0.0,\n",
       " 'XSanaaTahran': 0.0,\n",
       " 'XTahranAmman': 0.0,\n",
       " 'XTahranAnkara': 0.0,\n",
       " 'XTahranBaghdad': 0.0,\n",
       " 'XTahranBeirut': 0.0,\n",
       " 'XTahranCairo': 0.0,\n",
       " 'XTahranDamascus': 0.0,\n",
       " 'XTahranDoha': 0.0,\n",
       " 'XTahranDubai': 0.0,\n",
       " 'XTahranJuresalem': 0.0,\n",
       " 'XTahranKuwait': 0.0,\n",
       " 'XTahranManama': 0.0,\n",
       " 'XTahranMuscat': 0.0,\n",
       " 'XTahranNicosia': 0.0,\n",
       " 'XTahranRamallah': 0.0,\n",
       " 'XTahranRiyadh': 0.0,\n",
       " 'XTahranSanaa': 0.0,\n",
       " 'XTahranTahran': 0.0}"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#Solving the model\n",
    "\n",
    "prob.solve()\n",
    "\n",
    "print(\"Status:\",LpStatus[prob.status]) \n",
    "print(\"Objective: \",value(prob.objective))\n",
    "varsdict = {}\n",
    "for v in prob.variables():\n",
    "    varsdict[v.name] = v.varValue\n",
    "varsdict "
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
